package com.xdclass.thread.demo;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * @Author: Timo
 * @Date: 2019/4/25 17:15
 * @Description: 线程池创建线程
 */
public class ThreadPool {

    public static void main(String[] args) {
        ExecutorService executorService = Executors.newSingleThreadExecutor();
        executorService.execute(()->{
            System.out.println(Thread.currentThread().getName());
        });
    }

    
  
    
    /**
     * 
     * startup failed:
    Script1.groovy: 1: 3 expressions are required for the classic for loop, you gave 4 at line: 1 column: 92. File: Script1.groovy @ line 1, column 92.
        '').split(',').toList(); for(i = 0; i &
                                     ^
    
    1 error
       
     * @return 
     * @author timo
     * @creed: Talk is cheap,show me the code
     * @date 2019/4/26 09:15
     */
    
    public String test(String p1, String p2, String p3) {
        return "";
    }
}
